home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- hit = this.hitTest(_root.lander.ship);
- if(hit && _root.lander.vel - 20 >= 0 && 2 >= _root.lander.vel - 20 && 8 >= Math.abs(_root.lander._rotation))
- {
- _root.lander.landed = true;
- if(score)
- {
- _root.padscore = 200;
- _root.bonus = val1;
- _root.rotscore = Math.round((8 - Math.abs(_root.lander._rotation)) * 25,0);
- _root.velscore = Math.round((2 - (_root.lander.vel - 20)) * 100,0);
- _root.lander.score += _root.lander.fuel + _root.padscore + _root.bonus + _root.rotscore + _root.velscore;
- _root.fuelscore = _root.lander.fuel;
- _root.gravscore = Math.round(_root.grav * 20,0);
- _root.fuelgravscore = _root.fuelscore * _root.gravscore + _root.fuelgravscore;
- trace("padscore=" + _root.padscore + ", bonus=" + _root.bonus + ", rotscore=" + _root.rotscore + ", velscore=" + _root.velscore);
- score = false;
- }
- }
- else if(hit)
- {
- _root.lander.dead = true;
- }
- }
-